<template>
	<view class="success">
		<!-- 头部 -->
		<!-- #ifndef MP-WEIXIN -->
		<public-header :title="title" :share="false"></public-header>
		<view class="hei_100"></view>
		 <!-- #endif -->
		<!-- end -->
		
		<!-- 成功 -->
		<view class="nologin">
			<image src="/static/images/middle_image@2x.png" mode="widthFix"></image>
			<view>下单成功</view>
			<router-link to="/pages/index">返回首页</router-link>
		</view>
		<!-- end -->
	</view>
</template>

<script>
import PublicHeader from '@/components/PublicHeader.vue';
import { mapState, mapMutations } from 'vuex';
export default {
	computed: mapState(['hasLogin', 'uerInfo']),
	components: {
		PublicHeader
	},
	data() {
		return {
			title: 'beedao',
			ticket:[]
		};
	},
	onShow(){
		var _this = this
		_this.$http.get('/personal/center/getusercoupons/1').
		then(function (response) {
			// 可用
			_this.ticket = response.data
			console.log('个人信息',response.data)
		}).catch(function (error) {
			console.log(error);
		});	
	},
	methods: {}
};
</script>

<style scoped lang="scss">
.nologin {
	width: 100%;
}
.nologin image {
	width: 500rpx;
	display: block;
	margin: 0 auto;
	margin-top: 178rpx;
}
.nologin view {
	font-size: 28rpx;
	color: #333;
	text-align: center;
	margin-top: 25rpx;
}
.nologin navigator {
	width: 412rpx;
	height: 90rpx;
	background-color: $uni-color1;
	line-height: 90rpx;
	color: #fff;
	font-size: 36rpx;
	text-align: center;
	border-radius: 45rpx;
	margin: 0 auto;
	margin-top: 100rpx;
}
</style>

